package com.gxa.service;

import com.github.pagehelper.PageInfo;
import com.gxa.common.R;
import com.gxa.entity.SysProvider;
import com.gxa.entity.SysProviderProgress;
import org.springframework.stereotype.Service;


public interface ProviderFollowService {

    /**
     * 供应商跟进分页
     * @param currentPage
     * @param pageSize
     * @return
     */

    R findFollowList(Integer currentPage,Integer pageSize);

    /**
     * 新增供应商跟进
     * @param sysProviderProgress
     * @return
     */

    boolean addFollow(SysProviderProgress sysProviderProgress);

    /**
     * 修改供应商跟进
     * @param sysProviderProgress
     * @return
     */

    R updateFollowById(SysProviderProgress sysProviderProgress);

    /**
     * 根据name查询供应商跟进
     * @param name
     * @return
     */
    PageInfo<SysProviderProgress> findFollowListByName(String name,Integer currentPage,Integer pageSize);

    /**
     * 根据id删除供应商跟进
     * @param id
     * @return true or false
     */
    R deleteFollowById(Integer id);
}
